﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Model
{
    [Table("Shop")]
    public class Shop
    {
        /// <summary>
        /// 门店的id
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 门店名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 门店电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 门店地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 门店图片
        /// </summary>
        public string Photo { get; set; }
        /// <summary>
        /// 门店的状态
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; } = null;

        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
